#include <stdio.h>
int main()
{
    int n,a[n],i,count=0;
    double sum=0,aver;
    scanf("%d",&n);
    if(n>=1&&n<=10)
    {for(i=0;i<n;i++)
    {
        scanf("%d",&a[i]);
        sum=sum+a[i];
    }
    aver=sum/n;
    printf("%.2f\n",aver);
    for(i=0;i<n;i++)
    {
        if(a[i]>aver)
        {
            printf("%d ",a[i]);
            count++;
        }
    }
    if(count==0)
    {
        printf("\n");
    }}
    else printf("Invalid.");
    return 0;
}
